<div id="login">
  <h1>Sanmu resources manage system.</h1>
  <% unless flash[:notice] == nil %>
  <div id="Flash" class="flash_alert"><%= flash[:notice]%></div>
  <% end %>
  <div id="login_dialog" class="login_dialog">
    <% form_tag session_path do -%>

      <div id="user_name_login">
        <h2>用户名</h2>
        <%= text_field_tag 'login', @login, "id" => "username" %>
        <h2>密码</h2>
        <%= password_field_tag 'password', nil, "id" => "password" %>
        <br/>
        <label>
          <%= check_box_tag 'remember_me', '1', @remember_me, "class" => "auto" %>
          在这台电脑记住我
        </label>
        <br/>
        <%= submit_tag '登录', "class" => "button" %>
      </div>
    <% end -%>
  </div>
</div>